package com.okaixz.client.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "wx")
@Data
public class WeChatProperties {
    private String getTokenUrl;
    private String refreshTokenUrl;
    private String getUserinfoUrl;
    private String privateKeyPath;
    private String notifyUrl;
    private String apiV3Key;
    private String merchantSerialNumber;
    private String merchantId;

    private Map<String,WxAppProperites> wxAppInfo;


    @Data
    public static class WxAppProperites {
        private String appid;
        private String appSecret;
    }


}
